package java面向对象.继承;

public class text {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.setName("旺财");
        dog.setAge(3);
        System.out.println(dog.toString());
        System.out.println(dog.getColor());
    }
}
